<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul>
            <li></li>
        </ul>
    </div>

    <script src="plugins/vue2.js"></script>
    <script>
        new Vue({
            el:'#data',
            data:function(){
                return{
                    carts:[
                        {"id":1001,"name":"iphone16","price":4999.99,"num":3},
                        {"id":1002,"name":"iphone15","price":3999.99,"num":3},
                        {"id":1003,"name":"iphone14","price":2999.99,"num":10},
                        {"id":1004,"name":"iphone13","price":2000,"num":2},
                        {"id":1005,"name":"iphone12","price":3000,"num":5}
                    ]
                }
            }
        });
    </script>
</body>
</html>